﻿<%@ Page Language="C#" MasterPageFile="~/Themes/MasterPage.master" %>
<script runat="server">
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        myCommentary.UserId = SiteContext.Current.User.Id;
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
    <div class="member">
        <lswweb:SkinControl ID="menum" SkinFileName="Globals_UserMenum.ascx" runat="server" />
        <div class="rightBox">
            <h3>My Commentaries</h3>
            <lswweb:CommentaryList ID="myCommentary" runat="server">
                <Skin>
                    <asp:Repeater ID="gridView" runat="server">
                        <HeaderTemplate>
                            <table class="table_a">
                                <thead>
				                    <tr>
				                        <td style="width:100px;"><strong>No.</strong></td>
				                        <td style="width:130px;"><strong>Product name</strong></td>
				                        <td style="width:100px;"><strong>Create On</strong></td>
				                        <td><strong>Commentary</strong></td>
				                    </tr>
                                </thead>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr class="align_Center">
				                <td align="center"><%# Eval("ProductId") %></td>
				                <td align="center"><%# Eval("ProductName") %></td>
				                <td align="center"><%# Eval("DateCreated") %></td>
				                <td align="center"><%# Globals.Cut(Eval("Content").ToString(),38) %></td>
				             </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                </Skin>
            </lswweb:CommentaryList>
        </div>
    </div>
    <div class="clear"></div>
</asp:Content>

